<?php
include '../modele/database.php'; 

class company_controller
{
    function affiche_societe()
    {
         $db = new database;
         $result_query = $db->select("societe",$_GET['id_insert']);
         $societe = mysql_fetch_array($result_query);
         return $societe;
    }
    
    function modif_societe($id,$nameTable,$name,$nameValue,$adresse,$adresseValue,$siret,$siretValue)
    {
        $db = new database;
        $result = $db->update($id,$nameTable,$name,$nameValue,$adresse,$adresseValue,$siret,$siretValue);
        return $result;
    }
}
?>
